extends Node
class_name NodeDemo

func _init(node_name: String) -> void:
	print("NodeDemo init", node_name)
	self.add_to_group("node")
	self.remove_from_group("node")

func _enter_tree() -> void:
	print("NodeDemo _enter_tree")

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	print("NodeDemo _ready")
	get_tree().get_nodes_in_group("node")
#	get_tree().call_group("node", "custom_method")

func _exit_tree() -> void:
	print("NodeDemo _exit_tree")

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass

func _physics_process(delta: float) -> void:
	pass

func _input(event: InputEvent) -> void:
	pass

func _unhandled_input(event: InputEvent) -> void:
	pass
